import axios from '../utils/axios.js'

export const testApi = () => {
  axios.get('/test')
  .then(res => {
    // 处理响应数据
    console.log(res.data);
  })
  .catch(error => {
    // 处理请求错误
    console.log(error)
  });
}

export const categories = () => {
  axios.get('/categories')
  .then(res => {
    // 处理响应数据
    console.log(res.data);
  })
  .catch(error => {
    // 处理请求错误
    console.log(error)
  });
}
